-- GENERATED SPELL FOR [Terror Spinner] --


function spell0_32475(pUnit, Event) --@Impairing Poison,n/a--
pUnit:FullCastSpellOnTarget(36839,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32475', 10291, 1)
end

function spell1_32475(pUnit, Event) --@Instant Poison,n/a--
pUnit:FullCastSpellOnTarget(28428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32475', 541, 1)
end

function Sorts_32475(pUnit, Event)
local choix_sorts_32475 = math.random(0, 1)
if choix_sorts_32475 == 0 then
pUnit:RegisterEvent('spell0_32475', 1, 1)
end
if choix_sorts_32475 == 1 then
pUnit:RegisterEvent('spell1_32475', 1, 1)
end
end

function mob32475_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32475', math.random(1500, 3000), 1)
end

function mob32475_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32475_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32475_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32475, 1, 'mob32475_Action')
RegisterUnitEvent(32475, 2, 'mob32475_Leave')
RegisterUnitEvent(32475, 3, 'mob32475_Kill')
RegisterUnitEvent(32475, 4, 'mob32475_Die')
